package com.origin.onlinesys.service.modules.user;

import com.origin.onlinesys.domain.modules.interviewsys.Role;
import com.origin.onlinesys.domain.modules.interviewsys.RoleMenu;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 *
 * 角色查询
 * Created by Administrator on 2015/3/3.
 */
public interface IRolesService {
    /**
     * 查询所有的角色
     * @return
     */
    public Collection<String> selectAll();
    /**
     * 根据用户id查询角色
     * @param id
     * @return
     */
    public Collection<String> selectByUserId(String id);

    public Collection<Role> selectByUserIdAsObj(String id);

    public Collection<Role> selectAllAsObj();

    /**
     * 批量添加角色权限
     * @param list
     */
    public int addRolePermission(List<Map> list);

    public List<Role> selectItem();

    public List<String> selectPIdByRId(String id);

    public int delRolePermission(String id);

    public Role selectById(String id);

    public List<RoleMenu> selectRoleMenu(String id);

    public Map selectRoleIdByUserId(String id);
}
